package com.example.zookpeeper.implement;

import com.example.zookpeeper.connector.Lock;
import lombok.extern.slf4j.Slf4j;
import org.apache.curator.framework.CuratorFramework;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class ZKLock implements Lock {

    private static final String ZK_PATH = "/ZKLock/lock";

    private static final String LOCK_PREFIX = ZK_PATH+"/";

    private static final long WAIT_TIME = 1000;

    @Autowired
    private CuratorFramework client;



    @Override
    public boolean lock() {
        return false;
    }

    @Override
    public boolean unlock() {
        return false;
    }
}
